require("../../public/css/normalize.css")
require("../../public/css/common.css")
require("../../libs/font/iconfont.css")
require("./new.less")
require("../../libs/swiper/swiper-bundle.min.css")
const Swiper = require('../../libs/swiper/swiper-bundle.min.js');
const tools = require("../../public/js/tools.js")
const axios = require("axios")
window.addEventListener("DOMContentLoaded",function(){
    var mySwiper = new Swiper('.swiper', {
        // direction: 'vertical', // 垂直切换选项
        loop: true, // 循环模式选项
        autoplay: true,
        // 如果需要分页器
        pagination: {
          el: '.swiper-pagination',
        },
        // 如果需要前进后退按钮
        // navigation: {
        //   nextEl: '.swiper-button-next',
        //   prevEl: '.swiper-button-prev',
        // },
    
        // 如果需要滚动条
        // scrollbar: {
        //   el: '.swiper-scrollbar',
        // },
      })
    //  显示头部样式
    window.addEventListener("scroll",function(){
        let header=this.document.querySelector("header")
      if(window.scrollY>150){
       header.style.opacity=1
      }else{
        header.style.opacity=0
      }
    })
    // 点击返回上一个页面
    let fh=this.document.querySelector(".fh")
    fh.addEventListener("click",function(){
        history.back()
    })
})